import tabList from './tab-list.js'

export default {
  name: 'tabbar',
  data () {
    return {
      tabList: tabList[this.$globaldata.limits]
    }
  },
  created() {
    this.tabLen(this.tabList.length)
  },
  methods: {
    tabLen(num) {
      this.$store.commit('tabLen', num)
    }
  }
}